package com.swiftair.controller
{
    import com.swiftair.ApplicationFacade;
    import com.swiftair.view.ApplicationMediator;
    
    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.command.SimpleCommand;

    public class ViewPrepCommand extends SimpleCommand
    {
        override public function execute(note:INotification):void {
            // Register the ApplicationMediator
            facade.registerMediator(new ApplicationMediator(note.getBody() as Swiftair));

			// send the notification for show the Splash Screen
			sendNotification(ApplicationFacade.VIEW_SETTINGS_SCREEN);
        }
    }
}
